<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script>
    var all = 100;
    while (all >= 10) {
      if (operate == '1') {
        var save = prompt('请输入您要存入的钱数：');
        save = parseInt(save);
        all += save;
        var operate = prompt('请输入你要的操作：\n 1.存钱 \n 2.取钱 \n 3.显示余额 \n 4.退出');
      }
      if (operate == '2') {
        var draw = prompt('请你输入取的钱');
        draw = parseInt(draw);
        draw = all - draw;
        var operate = prompt('请输入你要的操作：\n 1.存钱 \n 2.取钱 \n 3.显示余额 \n 4.退出');
      }
      if (operate == '3') {
        alert('你现在的钱数是：' + all);
        var operate = prompt('请输入你要的操作：\n 1.存钱 \n 2.取钱 \n 3.显示余额 \n 4.退出');
      }
      if (operate == '4') {
        alert('你现在正在退出');
        all = false;
        break;
      }
    }
  </script>
</head>

<body>

</body>

</html>